x11: Deal better with L-shaped monitor arrangements
authorMatthias Clasen <mclasen@redhat.com>
Thu, 22 Mar 2012 21:44:54 +0000 (17:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 23 Mar 2012 13:09:14 +0000 (09:09 -0400)
commit88a1d4d5a1e26545e9a69ef9d11d37f62b608e14
tree3346e988ef379f734af34da8cf626a025c5f15a9
parent482195d7888696527557cc6af6ab3ecb4bd4ba5b
x11: Deal better with L-shaped monitor arrangements

The code for calculating the per-monitor workarea was ignoring
the fact that the EWMH workarea property can only handle rectangular
workareas, and thus can't really do justice to general monitor
arrangements. As a workaround, we ignore it for anything but
the primary monitor. And we ignore it for the primary monitor
as well if it does not even cover it.

https://bugzilla.gnome.org/show_bug.cgi?id=672163
gdk/x11/gdkscreen-x11.c